package greate.project;

import org.apache.camel.Exchange;
import org.apache.camel.spi.ExceptionHandler;

/**
 * @author v_zhangshun01
 */
public class MyExceptionHandler implements ExceptionHandler {
    @Override
    public void handleException(Throwable exception) {
        System.out.println("异常处理01");
    }

    @Override
    public void handleException(String message, Throwable exception) {
        System.out.println("异常处理02 ： " + message);

    }

    @Override
    public void handleException(String message, Exchange exchange, Throwable exception) {
        System.out.println("异常处理03 ： " + message);

    }
}
